package com.dzx.design.creational.singletonexample;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年07月15日 10:02:06
 */

/**
 * 饿汉式+静态代码块
 */
public class SingletonExample4 {

    private SingletonExample4() {
    }

    private static SingletonExample4 singletonExample4 = null;

    static {
        singletonExample4 = new SingletonExample4();
    }

    public static SingletonExample4 getInstance() {
        return singletonExample4;
    }


}
